ComponentOne Bitmap for WPF
C1.WPF.DX.4.5.2 Assembly / C1.Util.DX.WIC Namespace / BitmapSource Class / CopyPixels Method / CopyPixels(RectL,Byte[],Int32) Method
The rectangle to copy.
The destination array. The size of the array must be sizeof(pixel) * Width * Height
The stride (number of bytes per row).

In This Topic
    CopyPixels(RectL,Byte[],Int32) Method
    In This Topic

    Instructs the object to produce pixels.

    Syntax
    'Declaration
     
    Public Overloads Sub CopyPixels( _
       ByVal rectangle As RectL, _
       ByVal output() As Byte, _
       ByVal stride As Integer _
    ) 
    public void CopyPixels( 
       RectL rectangle,
       byte[] output,
       int stride
    )

    Parameters

    rectangle
    The rectangle to copy.
    output
    The destination array. The size of the array must be sizeof(pixel) * Width * Height
    stride
    The stride (number of bytes per row).
    See Also